package cn.nb12.xbox.service.impl;
import java.util.List;
import cn.nb12.xbox.dao.PriceDao;
import cn.nb12.xbox.po.Price;
import cn.nb12.xbox.utils.Assist;
import cn.nb12.xbox.service.PriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PriceServiceImpl implements PriceService{
    @Autowired
    private PriceDao priceDao;
    @Override
    public long getPriceRowCount(Assist assist){
        return priceDao.getPriceRowCount(assist);
    }
    @Override
    public List<Price> selectPrice(Assist assist){
        return priceDao.selectPrice(assist);
    }
    @Override
    public Price selectPriceByObj(Price obj){
        return priceDao.selectPriceByObj(obj);
    }
    @Override
    public Price selectPriceById(String id){
        return priceDao.selectPriceById(id);
    }
    @Override
    public int insertPrice(Price value){
        return priceDao.insertPrice(value);
    }
    @Override
    public int insertNonEmptyPrice(Price value){
        return priceDao.insertNonEmptyPrice(value);
    }
    @Override
    public int insertPriceByBatch(List<Price> value){
        return priceDao.insertPriceByBatch(value);
    }
    @Override
    public int deletePriceById(String id){
        return priceDao.deletePriceById(id);
    }
    @Override
    public int deletePrice(Assist assist){
        return priceDao.deletePrice(assist);
    }
    @Override
    public int updatePriceById(Price enti){
        return priceDao.updatePriceById(enti);
    }
    @Override
    public int updatePrice(Price value, Assist assist){
        return priceDao.updatePrice(value,assist);
    }
    @Override
    public int updateNonEmptyPriceById(Price enti){
        return priceDao.updateNonEmptyPriceById(enti);
    }
    @Override
    public int updateNonEmptyPrice(Price value, Assist assist){
        return priceDao.updateNonEmptyPrice(value,assist);
    }

    public PriceDao getPriceDao() {
        return this.priceDao;
    }

    public void setPriceDao(PriceDao priceDao) {
        this.priceDao = priceDao;
    }
	@Override
	public int deleteRepeat() {
		return priceDao.deleteRepeat();
	}

}